/*
 * 数据埋点统一处理
 * 标识统计:
 * wifi:共享WiFi相关埋点
 * */

import { addWiFiRecord } from "@/service/api/sp-store/wifi";

export const eventTracking = (sign, args) => {
  if (sign === "wifi") {
    handleTriggerWiFiTracking(args);
  }
};
export const handleTriggerWiFiTracking = async (args) => {
  const res = await addWiFiRecord({ ...args }).catch((err) => {
    console.log("埋点发送失败", err);
  });
  console.log("埋点发送成功", res);
};
